#include <jni.h>
#include <string>
#include <iostream>
#include <bitset>
#include "librtmp/rtmp.h"

extern "C" JNIEXPORT jstring JNICALL
Java_org_appspot_jnirtmplib_MainActivity_stringFromJNI(
        JNIEnv* env,
        jobject /* this */) {
//    std::string hello = "Hello from C++" + std::to_string(RTMP_LibVersion());

    char version[100];
    sprintf(version, "Hello from Rtmp version : %d", RTMP_LibVersion());

//    return env->NewStringUTF(hello.c_str());
    return env->NewStringUTF(version);
}